package at.ac.tuwien.big.we14.lab2.api;

/**
 * Represents a Game
 */

public interface Game {
    
    public static final int ROUND_TO_PALY = 5;
    public static final int QUESTIONS_PER_ROUND = 3;
    
    public static final String NONE = "NONE";
    public static final String COMP_PLAYER = "COMP_PLAYER";
    
    public static final String ACTION_GAME = "BigQuizServlet";
    public static final String ACTION_ROUNDCOMPLETE = "BigQuizServlet/RoundComplete";
    public static final String ACTION_FINISH = "BigQuizServlet/Finish";
    
    public String[] getPlayersId();
    
    public void setPlayersId(String[] session_ids, QuizFactory quizfactory);
    
    public boolean isOver(String session_id);
    
    public void addPlayedQuestion(Question question);
    
    public Question getQuestionToPaly(String session_id, QuizFactory quizfactory);
    
    public void setQuestionResult(String session_id, Question question, boolean correct, long time);
    
    public PlayersStatus getStatus(String session_id, String ACTION, QuizFactory quizfactory);
            
}
